<template>
    <div>
        <mt-swipe :auto="4000">
            <!--通过v-for循环渲染轮播图；
                                通过指定：bind简写形式绑定src属性数据；
                                设置每一项的key值，确保独一无二；-->
            <mt-swipe-item v-for="item in lunbotulist" :key="item.url">
                <img :src="item.src" alt="图片" :class="{'full':isfull}">
            </mt-swipe-item>
        </mt-swipe>
    </div>
</template>


<script>
export default {
    props: ['lunbotulist', 'isfull']
}
</script>
<style lang = "scss" scoped>
.mint-swipe {
    height: 160px;
    .mint-swipe-item {
        text-align: center;
        img {
            /*width: 100%;*/
            height: 100%;
        }
    }
}

.full {
    width: 100%;
}
</style>
